package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.dto.PageDTO;
import com.leyou.item.dto.SpecGroupDTO;
import com.leyou.item.dto.SpecParamDTO;
import com.leyou.item.dto.SpuDTO;
import com.leyou.item.entity.Spu;
import com.leyou.item.entity.SpuDetail;
import com.leyou.item.pojo.vo.SpuVo;

import java.util.List;

public interface SpuService extends IService<Spu> {

    PageDTO<SpuDTO> findPage(Integer page, Integer rows, Boolean saleable, Long brandId, Long categoryId, Long id);

    void addGoods(SpuDTO spuDTO);

    void updateGoods(SpuDTO spuDTO);

    void goodsOnAndOffShelves(Long id, Boolean saleable);

    SpuDTO querySkuAndSpuAndApuDetailById(Long id);

    SpuDTO queryGoodsById(Long id);

    List<SpecParamDTO> listSpec(Long spuId, Boolean searching);
}
